<%--
  Created by IntelliJ IDEA.
  User: 29379
  Date: 2022/4/25
  Time: 8:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改文章</title>
</head>
<script src="js/jquery-1.11.2.js"></script>
<script src="js/jquery-1.8.3.min.js"></script>
<script src="js/jquery.share.min.js"></script>
<%--封装了获取url上的参数的的方法--%>
<script src="js/getParameter.js"></script>
<script>
    $(function (){
        /*在getparameter.js中定义了方法*/
        var id = getParameter("id");
        $.post(
            "key","id="+id,
            function (data){
                $.each(data,function (index,num){
                    var title = num.title;
                    var matter = num.matter;
                    alert(title)
                  $("#title").val(title)
                 $("#matter").val(matter)
            }
        );
    })})
    function update(){
        var id = getParameter("id");
        var title=	document.getElementById("title").value;
        alert(title)
        var matter=	document.getElementById("matter").value;
        $.post(
            "update",{title:title,matter:matter},
            function (da){
                    alert("修改成功")
                    window.location.href="/modefiaction.jsp";
            },"json"
        )
    }
</script>
<body>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="content-type" content="text/html">
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="renderer" content="webkit" />
    <meta property="og:title" content="刘贼强的博客" />
    <title>刘贼强的博客</title>
    <meta name="keywords" content="个人网站模板、企业网站模板分享">
    <meta name="description" content="刘贼强的博客是一个分享网站模板和一些学习及生活中事情的地方。">

    <!--<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">-->

    <link rel="stylesheet" href="css/animate.min.css">
    <link rel="stylesheet" href="css/font-awesome.min.css">
    <link rel="stylesheet" href="css/base.css">
    <!--引入分享插件-->
    <link rel="stylesheet" href="css/share.min.css">

    <script src="js/jquery-1.8.3.min.js"></script>
    <script src="js/wow.min.js"></script>
    <script src="js/base.js"></script>
    <!--引入分享插件-->
    <script src="js/jquery.share.min.js"></script>
    <!--这里是因为在文章所以要隐藏掉右侧身体部分在大屏幕下的div，在小屏幕时在显示出来-->
    <style type="text/css">.base_content_right{width: 0;visibility: hidden;height: 0;}</style>
    <script src="js/jquery-1.11.2.js"></script>
</head>

<body>

<!--base随笔页面的图片-->
<div class="bg_pic"></div>

<!--base随笔页面的头部部分-->
<div class="base_header">

    <div class="base_header_content">

        <a href="index.html" class="base_header_logo"><img src="img/logo.png"></a>

        <div class="base_header_nav">
            <ul>
                <!--这里是没有子栏目的样式-->
                <li><i class="fa fa-caret-right"></i><a href="index.html">首页</a></li>

                <!--顶级导航-->
                <li class="have_second_navs">
                    <i class="fa fa-caret-right"></i><a href="list.html" class="base_header_nav_active">博客</a>
                </li>
                <!--顶级导航-->
                <li class="have_second_navs">
                    <i class="fa fa-caret-right"></i><a href="add.html">添加</a>
                </li>
                <li>
                    <i class="fa fa-caret-right"></i>
                    <a href="suibi.html">随笔</a>
                </li>
            </ul>


        </div>
        <!--手机导航部分-->

        <div class="base_nav_menu" id="base_nav_menu" bind_click="true"><span bind_click="true"></span></div>

        <div class="base_nav_zhezao"></div>

    </div>
</div>

<!--base文章页身体部分开始-->
<div class="base_content_body">
    <!--base文章页身体部分居中显示-->
    <div class="base_content_content clearfix">


        <div class="wenzhang_box wow zoomIn">
            <!--文章盒子-->
            <div class="wenzhang_box_content clearfix">


                <img class="wenzhang_yinzhang" src="img/yinzhang.png">
                <!--文章抬头-->
                <div class="wenzhang_box_content_title">

                    <h4 id="dao">
                        <a href=\"javascript:void(0)\">我的博客<i class="fa fa-angle-right"></i></a>添加
                    </h4>

                    <p class="wenzhang_box_content_jieshao">
                        <span class="wenzhang_box_content_jieshao_zuozhe">作者：张政</span>

                        <span class="wenzhang_box_content_jieshao_zishu">总字数：3500</span>

                        <span class="wenzhang_box_content_jieshao_time">更新于：2020-08-07 11:00:36</span>
                        <span class="wenzhang_box_content_jieshao_weiguan">围观群众：<span class="wenzhang_box_content_jieshao_xieti">8888</span></span>

                        <span class="wenzhang_box_content_jieshao_dig">点赞人数：<span class="wenzhang_box_content_jieshao_xieti">500</span></span>

                        <span class="wenzhang_box_content_jieshao_pinglun">评论人数：<span class="wenzhang_box_content_jieshao_xieti">500</span></span>

                    </p>

                </div>

                <!--文章抬头的右侧书-->
                <!--            <div class="wenzhang_box_content_title_right">-->
                <!--                <img src="img/yinzhang.png">-->
                <!--            </div>-->

                <!--文章身体部分-->
                <form id="form1">
                    <div class="wenzhang_box_article" id="write">
                        <div class=\"wenzhang_box_article_info\">
                            <i class="fa fa-quote-left"></i>
                            <input type="text" placeholder="请填写标题" id="title" name="title" value="">
                            <i class="fa fa-quote-right"></i> <br/>
                            <textarea placeholder="请填写正文" id="matter"   name="matter" style="width:100%;height: 400px" >
                       </textarea>
                        </div>
                    </div>
                    <div class="article_dig">
                        <!--文章页的点赞按钮-->
                        <button style="font-size:24px" type="button" onclick="update()">修改<i class="fa fa-hand-peace-o" ></i></button>
                    </div>
                </form>

                <div class="wenzhang_box_article_shengming">
                    <p>文章声明： 非特殊说明，本文版权归 留刘贼强个人博客 所有，转载请注明出处</p>
                    <p>本文标题： <span class="wenzhang_box_article_shengming_title" title="文章title">文章标题部分文章标题部分文章标题部分文章标题部分</span></p>
                    <p>本文地址： <span class="wenzhang_box_article_shengming_link" title="文章链接">http://www.刘贼强andff.com</span></p>
                </div>

                <div class="article_prev_next_list clearfix">
                    <a href="javascript:void(0)" title="上篇文章：标题"><i class="fa fa-arrow-left"></i>上篇文章：傻逼速度会傻逼速度会傻逼速度会傻逼速度会傻逼速度会傻逼速度会傻逼速度会傻逼速度会傻逼速度会傻逼速度会傻逼速度会</a>
                    <a href="javascript:void(0)" title="返回目录"><i class="fa fa-list-ul"></i>返回目录</a>
                    <a href="javascript:void(0)" title="下篇文章：标题"><i class="fa fa-arrow-right"></i>下篇文章：傻逼速度会傻逼速度会傻逼速度会傻逼速度会傻逼速度会傻逼速度会傻逼速度会傻逼速度会傻逼速度会傻逼速度会傻逼速度会傻逼速度会傻逼速度会傻逼速度会傻逼速度会傻逼速度会傻逼速度会傻逼速度会傻逼速度会</a>
                </div>
            </div>
        </div>
    </div>

</div>
</body>
</html>
</body>
</html>
